project( HierarchicalConfiguration )

SET(CMAKE_C_FLAGS_RELEASE "-Wall -O3 -DNDEBUG -fomit-frame-pointer -finline-functions -ffast-math" CACHE STRING "Release options.")
SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG -ggdb" CACHE STRING "Debug options.")
SET(CMAKE_BUILD_TYPE debug )

find_package(Qt4 REQUIRED)

set( QT_DONT_USE_QTGUI TRUE )
set( QT_USE_QTXML TRUE )

set( LIBRARY_OUTPUT_PATH ../lib )
set( EXECUTABLE_OUTPUT_PATH ../bin )

include_directories( ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTXML_INCLUDE_DIR} ../include ../Logging/include )
link_directories( ../Logging/lib )

set( SRCS ../src/main.cpp )

add_executable( HierarchicalConfigurationExample ${SRCS} )
target_link_libraries( HierarchicalConfigurationExample ${QT_QTCORE_LIBRARY_RELEASE} ${QT_QTXML_LIBRARY_RELEASE} )
